import { http } from '@/utils/http'

export const getTest = <T>(data: any): Promise<T> => {
  return http.doGet<T>('/api/connect', data)
}

export const postTest = <T>(data: {}): Promise<T> => {
  return http.doPost<T>('/api/connect', data)
}

export const postJson = <ITest>(data: {}) : Promise<ITest> => {
  return http.doPostJson<ITest>('/api/connect2', data)
}
